<%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2020/5/24
  Time: 12:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>Welcome to login!</title>
  </head>
  <body>
  <div id="container">
    <div id="box">
      <form action="login.jsp" method="post">
        <table>
          <!--虽然有显示用户名和密码的限制，但是并未对不符合的输入进行处理-->
          <tr>
            <td>用户名：</td>
            <td><input type="text" name="username" placeholder="用户名为4~16位字母或数字" value="" /></td>
          </tr>
          <tr>
            <td>密码：</td>
            <td><input type="password" name="password" placeholder="密码为6~18位字母或数字" value="" /></td>
          </tr>
          <tr>
            <td><input class="login" type="submit" name="login" value="登录" /></td>
            <td><input class="register" type="button" name="register" value="注册" onclick=window.open("register.jsp") /></td>
          </tr>
        </table>
      </form>
    </div>
  </div>
  </body>
</html>
